Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't automatically autocomplete () after ? and certain special functions #369

Closed
wants to merge 2 commits into from

Conversation

DavisVaughan
Copy link
Contributor

Addresses posit-dev/positron#2338
Addresses part of posit-dev/positron#1818

jennybc added a commit that referenced this pull request Feb 10, 2025
* Analyze completion site re: trailing parens

* Start dismantling measures that just aided development

* More parallel with the other branch

* Get inspired by the less nested approach in PR #369

* Must have been leftover from an experiment

* Add tests

* Be consistent

* Try to get a bit more info on the Windows test failure

* Flatten this out too

* Not my problem to solve: Revert "Try to get a bit more info on the Windows test failure"

This reverts commit dea921d.

This is unrelated to this PR and is being tracked in #678.

* Remove rest of temporary logging

* Extract out `node_find_containing_call()`

* Rework on top of `parameter_hints()` idea

* Add `ParameterHints` enum

And fix a bug with imports environment functions not respecting `parameter_hints`

* Move tests to `parameter_hints.rs`

It seems obvious to me that we are testing a feature that "officially" lives here now

* Tweak examples probed in tests

* Add comment

* Use original name of function

---------

Co-authored-by: Davis Vaughan <[email protected]>
@jennybc jennybc closed this in #680 Feb 10, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant